package com.example.day20;

import static java.lang.Character.getName;

/**
 * @author Lenovo
 */
public class ThreadJoin {
    public class threadJoin extends Thread {
        @Override
        public void run() {
            for (int i = 0; i < 100; i++) {
                System.out.println(getName() + ":" + i);
            }
        }

        public void setName(String 康熙) {
        }

        public void start() {
        }

        public void join() {
        }
    }
    public class ThreadJoinDemo {
        public void main(String[] args) {
            threadJoin tj1 = new threadJoin();
            threadJoin tj2 = new threadJoin();
            threadJoin tj3 = new threadJoin();

            tj1.setName("康熙");
            tj2.setName("四阿哥");
            tj3.setName("八阿哥");

            tj1.start();
            tj1.join();
            tj2.start();
            tj3.start();

        }
    }
